<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<link rel="stylesheet" href="layui-v2.5.4/layui/css/layui.css" />

<body>
<form class="layui-form" action="">
<div class="layui-form-item">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-block">
      <input type="text" name="用户名" required  lay-verify="required" autocomplete="off" class="layui-input" id="username">
    </div>
  </div>
<div class="layui-form-item">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-block">
      <input type="text" name="密码" required  lay-verify="required" autocomplete="off" class="layui-input" id="password">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">企业名</label>
    <div class="layui-input-block">
      <input type="text" name="企业名" required  lay-verify="required" autocomplete="off" class="layui-input" id="comName">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">地址</label>
    <div class="layui-input-block">
      <input type="text" name="地址" required  lay-verify="required" autocomplete="off" class="layui-input" id="address">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">公司人数</label>
    <div class="layui-input-block">
      <input type="text" name="公司人数" required  lay-verify="required" autocomplete="off" class="layui-input" id="num">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">营业执照号</label>
    <div class="layui-input-block">
      <input type="text" name="营业执照号" required  lay-verify="required" autocomplete="off" class="layui-input" id="id">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">注册资金</label>
    <div class="layui-input-block">
      <input type="text" name="注册资金" required  lay-verify="required" autocomplete="off" class="layui-input" id="registerMoney">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">注册时间</label>
    <div class="layui-input-block">
      <input type="text" name="注册时间" required  lay-verify="required" autocomplete="off" class="layui-input" id="registerTime">
    </div>
  </div>
    <div class="layui-form-item">
    <label class="layui-form-label">电话</label>
    <div class="layui-input-block">
      <input type="text" name="电话" required  lay-verify="required" autocomplete="off" class="layui-input" id="tel">
    </div>
  </div>
   <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo">立即修改</button>
      <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button> -->
    </div>
  </div>
  </form>
</html>
<style>
.layui-form-label{
text-align:center;
}
.layui-input, .layui-textarea{
width:85%;
}
.layui-input{
border:1px solid #e5e5e5;
}
.layui-btn{
margin-left:30px;
}
</style>
	<script src="layui-v2.5.4/layui/layui.js"></script>

<script>
//Demo
layui.use('form', function(){
  var form = layui.form;
  //监听提交
  form.on('submit(formDemo)', function(data){
	  console.log(data);
	  layer.msg(JSON.stringify(data.field));
    return false;
  });
});
</script>